import React from 'react'
// import { HashRouter as Router, Route, Redirect, Switch } from 'react-router-dom'
import { BrowserRouter as Router,   Route, Redirect, Switch } from 'react-router-dom'
import Test1 from '@/components/test1'
import Test3 from '@/components/test3'
import Test2 from '@/components/test2'
import App from '@/components/app'

export default class Index extends React.Component {
    render() {
        return (
            <Router>
                <Switch>
                    <Route path='/' exact={true} component={App}></Route>
                    <Route path='/Test1' exact={true} component={Test1}></Route>
                    <Route path='/Test2/:id' exact={true} component={Test2}></Route>
                    <Route path='/Test3' exact={true} component={Test3}></Route>
                    <Redirect to='/' />
                </Switch>

            </Router>
        )
    }
} 